package com.hnzbxy.api.biz.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 部门节点视图对象（用于树形结构）
 *
 * @author xiaoge
 * @date 2020/3/7 16:45
 * @version 1.0
 */
@Data
@ApiModel(value = "DeptNodeVO", description = "部门节点视图对象（用于树形结构）")
public class DeptNodeVO {

    @ApiModelProperty(value = "部门ID")
    private Long id;

    @ApiModelProperty(value = "部门编码")
    private String deptCode;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "部门简称")
    private String deptAbbr;

    @ApiModelProperty(value = "上级部门ID")
    private Long parentDeptId;

    @ApiModelProperty(value = "部门状态：0-未启用，1-正常，2-暂停，3-撤销")
    private Integer deptStatus;

    @ApiModelProperty(value = "子部门列表")
    private List<DeptNodeVO> children;
}
    